def run(params:list[str]):
    from modelscope.pipelines import pipeline
    from modelscope.utils.constant import Tasks
    #pip install sentencepiece
    from modelscope.models.nlp import T5ForConditionalGeneration
    from modelscope.preprocessors import TextGenerationTransformersPreprocessor
    from ApiBase import apiBase

    try:
        model = T5ForConditionalGeneration.from_pretrained('ClueAI/PromptCLUE-base-v1-5', revision='v0.1')
        preprocessor = TextGenerationTransformersPreprocessor(model.model_dir)
        pipeline_t2t = pipeline(task=Tasks.text2text_generation, model=model, preprocessor=preprocessor)

        #print(pipeline_t2t('情感分析：\n这个看上去还可以，但其实我不喜欢\n选项：积极，消极'))
        # {'text': '消极'}
        cnt = apiBase.argv(1,'n这个看上去还可以，但其实我不喜欢')
        req = apiBase.argv(2,'积极，消极')

        prompt = f"情感分析：\n{cnt}\n选项：{req}"
        print(pipeline_t2t(prompt))
    finally:
        pipeline_t2t=None
        apiBase.close()
